<?php

namespace App\Admin\Renderable;

use Dcat\Admin\Admin;
use Dcat\Admin\Support\LazyRenderable;
use Dcat\Admin\Widgets\Table;

class Pin extends LazyRenderable
{
    public function render()
    {
        // 获取ID
        $id = $this->pin_id;

        $pin = \App\Models\Pin::where('id', $id)
            ->first()
            ->toArray();

        $this->addScript();
        return view('admin.pages.pin_schedule', ['pin' => $pin]);
    }

    protected function addScript()
    {
        Admin::script(<<<JS

  
JS);
    }



}